<?php
global $db;
require_once "tool/sql.php";
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
foreach (glob("wordlists/*") as $file) {
    $content = file_get_contents($file);
    $file = explode("/",$file)[1];
    $file = explode(".",$file)[0];
    $db->insert("publiclist",["name"=>$file,"text" => $content]);
}
echo "Initialization Succeed.";